<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="./src/assets/index.css">
    <script src="./node_modules/vue/dist/vue.global.js"></script>
    <script src="/node_modules/axios/dist/axios.min.js"></script>
    <script src="./node_modules/lodash/lodash.min.js"></script>
</head>
<body>
    <div id="app">
         <div class="container">

      <!-- 上面搜索部分 -->
      <div class="search">
        <div class="title">
          <p>综合</p>
          <p>定位</p>
        </div>
        <div class="types">
          <div class="type-list">
            <div class="radio" @click="changeType('zonghe',10)" :class="query.value===10?'checked':''">本周免费</div>
            <div class="radio" @click="changeType('zonghe',11)" :class="query.value===11?'checked':''">新手推荐</div>
          </div>
          <div class="type-list">
            <div class="radio" @click="changeType('dingwei',0)" :class="query.value===0?'checked':''">全部</div>
            <div class="radio"  @click="changeType('dingwei',3)" :class="query.value===3?'checked':''">坦克</div>
            <div class="radio"  @click="changeType('dingwei',1)" :class="query.value===1?'checked':''">战士</div>
            <div class="radio"  @click="changeType('dingwei',4)" :class="query.value===4?'checked':''">刺客</div>
            <div class="radio" @click="changeType('dingwei',2)" :class="query.value===2?'checked':''">法师</div>
            <div class="radio" @click="changeType('dingwei',5)" :class="query.value===5?'checked':''">射手</div>
            <div class="radio"  @click="changeType('dingwei',6)" :class="query.value===6?'checked':''">辅助</div>
          </div>
        </div>
        <div class="keyword">
          <div class="input">
            <input type="text" placeholder="请输入你要搜索的英雄名" :value="keyword" @input="changeKeyword"/>
          </div>
        </div>
      </div>

      <!-- 下面列表展示部分 -->
      <ul class="list">
        <li v-for="hero in filterhero">
          <a :href="`https://pvp.qq.com/web201605/herodetail/${hero.ename}.shtml`" target="_blank">
                 <img :src="`https://game.gtimg.cn/images/yxzj/img201606/heroimg/${hero.ename}/${hero.ename}.jpg`">
                <span v-html="hero.cname"></span>
          </a>
        </li>
      </ul>
    </div>

    </div>
    
    <script src="./src/js/index.js"></script>
</body>
</html>